﻿@if (User.Identity.IsAuthenticated)
{
    <div class="col-md-12">
    <a class="btn btn-success" href="AddPhoto">Add Photo</a>
<a class="btn btn-success" href="Events">See Events</a>
        </div>
}



@foreach (var p in Model)
{

    <div class="col-md-6">
        @if (User.Identity.IsAuthenticated)
        {
            <a class="btn btn-block btn-danger" href="/Home/PhotoDelete/@p.PhotoID">Delete</a>
            <a class="btn btn-block btn-default" href="/Home/PhotoEdit/@p.PhotoID">EditPhoto</a>
    <img class="img-responsive" style="height:400px; width:600px;" src="@p.FilePath" />
        }

        
    </div>
}